-- GENERATED SPELL FOR [Hive'Zora Abomination] --


function spell0_15449(pUnit, Event) --@Abomination Spit,n/a--
pUnit:FullCastSpellOnTarget(25262,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15449', 12500, 1)
end

function spell1_15449(pUnit, Event) --@Poison Cloud,Self--
pUnit:FullCastSpellOnTarget(25198,pUnit)
pUnit:RegisterEvent('Sorts_15449', 10000, 1)
end

function spell2_15449(pUnit, Event) --@Wings of Despair,Self--
pUnit:FullCastSpellOnTarget(25260,pUnit)
pUnit:RegisterEvent('Sorts_15449', 6333, 1)
end

function Sorts_15449(pUnit, Event)
local choix_sorts_15449 = math.random(0, 2)
if choix_sorts_15449 == 0 then
pUnit:RegisterEvent('spell0_15449', 1, 1)
end
if choix_sorts_15449 == 1 then
pUnit:RegisterEvent('spell1_15449', 1, 1)
end
if choix_sorts_15449 == 2 then
pUnit:RegisterEvent('spell2_15449', 1, 1)
end
end

function mob15449_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15449', math.random(1500, 3000), 1)
end

function mob15449_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15449_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15449_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15449, 1, 'mob15449_Action')
RegisterUnitEvent(15449, 2, 'mob15449_Leave')
RegisterUnitEvent(15449, 3, 'mob15449_Kill')
RegisterUnitEvent(15449, 4, 'mob15449_Die')
